angular.module('faApp')
  .service('roadVideoService', [ 'ajaxService',function (ajaxService) {

    this.add = function (activity) {
      return ajaxService.post(ajaxService.getApiUri("ROADVIDEO_ADD"), activity || {});
    };

    this.edit = function (activity) {
      return ajaxService.post(ajaxService.getApiUri("ROADVIDEO_EDIT"), activity || {});
    };

    this.list = function (activity) {
      return ajaxService.post(ajaxService.getApiUri("ROADVIDEO_LIST"), activity || {});
    };

    this.detailById = function (id) {
      return ajaxService.post(ajaxService.getApiUri("ROADVIDEO_BT_ID"), {id:id});
    };

    this.delete = function (id) {
      return ajaxService.post(ajaxService.getApiUri("ROADVIDEO_DELETE"), {id:id});
    };

    this.videoIdbyPro = function (activity) {
      return ajaxService.post(ajaxService.getApiUri("ROADVIDEO_PRO_BY_ID"), activity || {});
    };

    this.videoPassword = function (pass) {
      return ajaxService.post(ajaxService.getApiUri("ROADVIDEO_PASSWORD"), {encryptionPassword:pass});
    };

    
}]);